package net.uofitorn.bigtwo;

public class Card {

	private int xPos;
	private int yPos;
	private int width;
	private int height;
	private enum Suit {DIAMOND, CLUB, HEART, SPADE}
	private enum Type {THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE, TWO}
	Suit suit;
	Type type;
	// suit order goes diamonds, clubs, hearts, spades, 
	int value;
	
	public Card(int value) {
		this.value = value;
	}
	
	public int getSuit() {
		int remainder = value % 4;
		switch(remainder) {
			case 0: 
				return Constants.DIAMOND;
			case 1:
				return Constants.CLUB;
			case 2:
				return Constants.HEART;
			case 3:
				return Constants.SPADE;
			
		}
		return -1;
	}
	
	public int getFaceValue() {
		return 0;
	}
	
	public int getxPos() {
		return xPos;
	}

	public void setxPos(int xPos) {
		this.xPos = xPos;
	}

	public int getyPos() {
		return yPos;
	}

	public void setyPos(int yPos) {
		this.yPos = yPos;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public void setSuit(Suit suit) {
		this.suit = suit;
	}	
	public Type getType() {
		return type;
	}
	public void setType(Type type) {
		this.type = type;
	}

}
